{% extends "base.html" %}
{% from "_page.html" import message, render_errors %}
{%block title%}登录 | {%endblock%}
{%block container%}
<div id="login">
<h2>登录</h2>
    <form class="form-horizontal" method="POST">
        {{ form.hidden_tag() }}
        <div class="control-group">
            {{form.account.label(class="control-label")}}
            <div class="controls">
              {{ form.account(placeholder="邮箱或用户名") }} {{ render_errors(form.account) }}
            </div>
        </div>
        <div class="control-group">
            {{form.password.label(class="control-label")}}
            <div class="controls">
              {{ form.password(placeholder="密码") }} {{ render_errors(form.password) }}
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
            <label class="checkbox" for="remember">
            {{ form.remember() }} {{form.remember.label()}}
            </label>
            {{form.submit(class="btn")}}
            </div>
        </div>
    </form>
</div>
{% endblock %}